// Copyright 2008 Senary
// See credits.txt for details.

// This file is part of Omega VII.

// Omega VII is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Omega VII is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Omega VII.  If not, see <http://www.gnu.org/licenses/>.

#pragma once

#include "Button.h"
#include "RightPanel.h"
#include "ButtonObserver.h"

class PlanetPanel :	public RightPanel, public ButtonObserver
{
private:
	Button factoryButton;
	Button minesButton;
	Button spaceships1Button;
	Button spaceships2Button;
	Button spaceships3Button;
	Button spaceships4Button;

	// GameStudio needs a variable to display...
	var _shield;
	var _factoryLand;
	var _maxFactoryLand;
	var _mineLand;
	var _maxMineLand;
	var _constructionPoint;

protected:
	//listern to buttons' click event
	void on_clicked(Button* clickedButton);
public:
	PlanetPanel(void);
	virtual ~PlanetPanel(void);

	// param timestep: time since the last update, in seconds
	// param totalTime: total time the game has been running
	virtual void update(float timestep, float totalTime);

	//create PANEL useable by engine
	virtual void createPanel(void);

	// Makes the panel visible
	virtual void display();

	// Hides the panel
	virtual void hide();
};
